var app = getApp();
const pathUrl = app.globalData.pathUrl;
Page({
    data: {
      array1: [], index1: '2',
      array2: [], index2: '0',
      array3: [], index3: '0',
      array4: [], index4: '0',
      array5: [], index5: '0',
      array6: [], index6: '0',
      array7: [], index7: '0',
      array8: [], index8: '0',
      array9: [], index9: '1',
      array10: [], index10: '0',
      array11: [], index11: '0',
      array12: [], index12: '0',
      array13: [], index13: '1',
      array14: [], index14: '0',//暂时没有用
      array15: [], index15: '1',
      array16: [], index16: '1',
      array17: [], index17: '1',
        pathUrl: pathUrl,
        orderNo: '',
        proName: '',
      id: '',
      bpmStatus: '',
      posAddr: '',
      posMobile: '',
      posRemark: '',
      posShengfen: '',
      posChengshi: '',
      posConcract: '',
      posId: '',
      posType: '',
      posJuli: '',
      posJhxjBtime: '',
      posXjpcNo: '',
      wzChayi: '',
      posXjid: '',
      posJhxjUser: '',
      shYysj: '',
      posQuyu: '',
      posFenzu: '',
      posXjType: '',
      posJhxjEtime: '',
      posSjxjTime: '',
      posJhxjUsername: '',
      posInstalldate: '',
      shShxy: '',
      shOtherpic: '',
      shYyzz: '',
      posName: '',
      shPic2: '',
      shPic1: '',
      posNo: '',
      posWeidu: '',
      posJingdu: '',
      sjWendu: '',
      sjJingdu: '',
      fxjOut01: 'A8',
      fxjOut03: '有',
      fxjOut04: '充足',
      fxjOut05: '是',
      fxjOut02: '有位置规范',
      fxjOut16: '否',
      fxjOut18: '',
      fxjOut21: '',
      fxjOut14: '',
      fxjOut15: '满意',
      fxjOut08: '否',
      fxjOut19: '',
      fxjOut64: '',
      fxjOut20: '',
      fxjOut09: '是',
      fxjOut17: '否',
      fxjOut12: '是',
      fxjOut60: '',
      fxjOut65: '',
      fxjOut61: '',
      fxjOut10: '是',
      fxjOut62: '',
      fxjOut11: '无变动',
      fxjOut13: '现场培训',
      fxjOut63: '',
      fxjOut07: '是',
      fxjOut06: '是',
      fxjOut66: '',
      fxjOut74: '',
      fxjOut27: '',
      fxjOut26: '',
      fxjOut29: '',
      fxjOut31: '',
      fxjOut70: '',
      fxjOut71: '',
      fxjOut67: '',
      fxjOut73: '',
      fxjOut25: '',
      fxjOut76: '',
      fxjOut28: '',
      fxjOut24: '',
      fxjOut22: '',
      fxjOut23: '',
      fxjOut30: '',
      fxjOut69: '',
      fxjOut75: '',
      fxjOut68: '',
      fxjOut32: '',
      fxjOut43: '',
      fxjOut46: '',
      fxjOut37: '',
      fxjOut80: '',
      fxjOut36: '',
      fxjOut79: '',
      fxjOut39: '',
      fxjOut77: '',
      fxjOut72: '',
      fxjOut34: '',
      fxjOut48: '',
      fxjOut44: '',
      fxjOut41: '',
      fxjOut33: '',
      fxjOut42: '',
      fxjOut35: '',
      fxjOut38: '',
      fxjOut40: '',
      fxjOut45: '',
      fxjOut78: '',
      fxjOut49: '',
      fxjOut53: '',
      fxjOut51: '',
      fxjOut50: '',
      fxjOut54: '',
      fxjOut52: '',
      fxjOut58: '',
      fxjOut55: '',
      fxjOut59: '',
      fxjOut47: '',
      fxjOut56: '',
      fxjOut57: '',
      riderCommentList: []
    },

  idInput: function (e) { this.setData({ id: e.detail.value }) },
  posAddrInput: function (e) { this.setData({ posAddr: e.detail.value }) },
  posMobileInput: function (e) { this.setData({ posMobile: e.detail.value }) },
  posRemarkInput: function (e) { this.setData({ posRemark: e.detail.value }) },
  posShengfenInput: function (e) { this.setData({ posShengfen: e.detail.value }) },
  posChengshiInput: function (e) { this.setData({ posChengshi: e.detail.value }) },
  posConcractInput: function (e) { this.setData({ posConcract: e.detail.value }) },
  posIdInput: function (e) { this.setData({ posId: e.detail.value }) },
  posTypeInput: function (e) { this.setData({ posType: e.detail.value }) },
  posJuliInput: function (e) { this.setData({ posJuli: e.detail.value }) },
  posJhxjBtimeInput: function (e) { this.setData({ posJhxjBtime: e.detail.value }) },
  posXjpcNoInput: function (e) { this.setData({ posXjpcNo: e.detail.value }) },
  wzChayiInput: function (e) { this.setData({ wzChayi: e.detail.value }) },
  posXjidInput: function (e) { this.setData({ posXjid: e.detail.value }) },
  posJhxjUserInput: function (e) { this.setData({ posJhxjUser: e.detail.value }) },
  shYysjInput: function (e) { this.setData({ shYysj: e.detail.value }) },
  posQuyuInput: function (e) { this.setData({ posQuyu: e.detail.value }) },
  posFenzuInput: function (e) { this.setData({ posFenzu: e.detail.value }) },
  posXjTypeInput: function (e) { this.setData({ posXjType: e.detail.value }) },
  posJhxjEtimeInput: function (e) { this.setData({ posJhxjEtime: e.detail.value }) },
  posSjxjTimeInput: function (e) { this.setData({ posSjxjTime: e.detail.value }) },
  posJhxjUsernameInput: function (e) { this.setData({ posJhxjUsername: e.detail.value }) },
  posInstalldateInput: function (e) { this.setData({ posInstalldate: e.detail.value }) },
  shShxyInput: function (e) { this.setData({ shShxy: e.detail.value }) },
  shOtherpicInput: function (e) { this.setData({ shOtherpic: e.detail.value }) },
  shYyzzInput: function (e) { this.setData({ shYyzz: e.detail.value }) },
  posNameInput: function (e) { this.setData({ posName: e.detail.value }) },
  shPic2Input: function (e) { this.setData({ shPic2: e.detail.value }) },
  shPic1Input: function (e) { this.setData({ shPic1: e.detail.value }) },
  posNoInput: function (e) { this.setData({ posNo: e.detail.value }) },
  posWeiduInput: function (e) { this.setData({ posWeidu: e.detail.value }) },
  posJingduInput: function (e) { this.setData({ posJingdu: e.detail.value }) },
  sjWenduInput: function (e) { this.setData({ sjWendu: e.detail.value }) },
  sjJingduInput: function (e) { this.setData({ sjJingdu: e.detail.value }) },
  fxjOut01Input: function (e) { this.setData({ fxjOut01: e.detail.value }) },
  fxjOut03Input: function (e) { this.setData({ fxjOut03: e.detail.value }) },
  fxjOut04Input: function (e) { this.setData({ fxjOut04: e.detail.value }) },
  fxjOut05Input: function (e) { this.setData({ fxjOut05: e.detail.value }) },
  fxjOut02Input: function (e) { this.setData({ fxjOut02: e.detail.value }) },
  fxjOut16Input: function (e) { this.setData({ fxjOut16: e.detail.value }) },
  fxjOut18Input: function (e) { this.setData({ fxjOut18: e.detail.value }) },
  fxjOut21Input: function (e) { this.setData({ fxjOut21: e.detail.value }) },
  fxjOut14Input: function (e) { this.setData({ fxjOut14: e.detail.value }) },
  fxjOut15Input: function (e) { this.setData({ fxjOut15: e.detail.value }) },
  fxjOut08Input: function (e) { this.setData({ fxjOut08: e.detail.value }) },
  fxjOut19Input: function (e) { this.setData({ fxjOut19: e.detail.value }) },
  fxjOut64Input: function (e) { this.setData({ fxjOut64: e.detail.value }) },
  fxjOut20Input: function (e) { this.setData({ fxjOut20: e.detail.value }) },
  fxjOut09Input: function (e) { this.setData({ fxjOut09: e.detail.value }) },
  fxjOut17Input: function (e) { this.setData({ fxjOut17: e.detail.value }) },
  fxjOut12Input: function (e) { this.setData({ fxjOut12: e.detail.value }) },
  fxjOut60Input: function (e) { this.setData({ fxjOut60: e.detail.value }) },
  fxjOut65Input: function (e) { this.setData({ fxjOut65: e.detail.value }) },
  fxjOut61Input: function (e) { this.setData({ fxjOut61: e.detail.value }) },
  fxjOut10Input: function (e) { this.setData({ fxjOut10: e.detail.value }) },
  fxjOut62Input: function (e) { this.setData({ fxjOut62: e.detail.value }) },
  fxjOut11Input: function (e) { this.setData({ fxjOut11: e.detail.value }) },
  fxjOut13Input: function (e) { this.setData({ fxjOut13: e.detail.value }) },
  fxjOut63Input: function (e) { this.setData({ fxjOut63: e.detail.value }) },
  fxjOut07Input: function (e) { this.setData({ fxjOut07: e.detail.value }) },
  fxjOut06Input: function (e) { this.setData({ fxjOut06: e.detail.value }) },
  fxjOut66Input: function (e) { this.setData({ fxjOut66: e.detail.value }) },
  fxjOut74Input: function (e) { this.setData({ fxjOut74: e.detail.value }) },
  fxjOut27Input: function (e) { this.setData({ fxjOut27: e.detail.value }) },
  fxjOut26Input: function (e) { this.setData({ fxjOut26: e.detail.value }) },
  fxjOut29Input: function (e) { this.setData({ fxjOut29: e.detail.value }) },
  fxjOut31Input: function (e) { this.setData({ fxjOut31: e.detail.value }) },
  fxjOut70Input: function (e) { this.setData({ fxjOut70: e.detail.value }) },
  fxjOut71Input: function (e) { this.setData({ fxjOut71: e.detail.value }) },
  fxjOut67Input: function (e) { this.setData({ fxjOut67: e.detail.value }) },
  fxjOut73Input: function (e) { this.setData({ fxjOut73: e.detail.value }) },
  fxjOut25Input: function (e) { this.setData({ fxjOut25: e.detail.value }) },
  fxjOut76Input: function (e) { this.setData({ fxjOut76: e.detail.value }) },
  fxjOut28Input: function (e) { this.setData({ fxjOut28: e.detail.value }) },
  fxjOut24Input: function (e) { this.setData({ fxjOut24: e.detail.value }) },
  fxjOut22Input: function (e) { this.setData({ fxjOut22: e.detail.value }) },
  fxjOut23Input: function (e) { this.setData({ fxjOut23: e.detail.value }) },
  fxjOut30Input: function (e) { this.setData({ fxjOut30: e.detail.value }) },
  fxjOut69Input: function (e) { this.setData({ fxjOut69: e.detail.value }) },
  fxjOut75Input: function (e) { this.setData({ fxjOut75: e.detail.value }) },
  fxjOut68Input: function (e) { this.setData({ fxjOut68: e.detail.value }) },
  fxjOut32Input: function (e) { this.setData({ fxjOut32: e.detail.value }) },
  fxjOut43Input: function (e) { this.setData({ fxjOut43: e.detail.value }) },
  fxjOut46Input: function (e) { this.setData({ fxjOut46: e.detail.value }) },
  fxjOut37Input: function (e) { this.setData({ fxjOut37: e.detail.value }) },
  fxjOut80Input: function (e) { this.setData({ fxjOut80: e.detail.value }) },
  fxjOut36Input: function (e) { this.setData({ fxjOut36: e.detail.value }) },
  fxjOut79Input: function (e) { this.setData({ fxjOut79: e.detail.value }) },
  fxjOut39Input: function (e) { this.setData({ fxjOut39: e.detail.value }) },
  fxjOut77Input: function (e) { this.setData({ fxjOut77: e.detail.value }) },
  fxjOut72Input: function (e) { this.setData({ fxjOut72: e.detail.value }) },
  fxjOut34Input: function (e) { this.setData({ fxjOut34: e.detail.value }) },
  fxjOut48Input: function (e) { this.setData({ fxjOut48: e.detail.value }) },
  fxjOut44Input: function (e) { this.setData({ fxjOut44: e.detail.value }) },
  fxjOut41Input: function (e) { this.setData({ fxjOut41: e.detail.value }) },
  fxjOut33Input: function (e) { this.setData({ fxjOut33: e.detail.value }) },
  fxjOut42Input: function (e) { this.setData({ fxjOut42: e.detail.value }) },
  fxjOut35Input: function (e) { this.setData({ fxjOut35: e.detail.value }) },
  fxjOut38Input: function (e) { this.setData({ fxjOut38: e.detail.value }) },
  fxjOut40Input: function (e) { this.setData({ fxjOut40: e.detail.value }) },
  fxjOut45Input: function (e) { this.setData({ fxjOut45: e.detail.value }) },
  fxjOut78Input: function (e) { this.setData({ fxjOut78: e.detail.value }) },
  fxjOut49Input: function (e) { this.setData({ fxjOut49: e.detail.value }) },
  fxjOut53Input: function (e) { this.setData({ fxjOut53: e.detail.value }) },
  fxjOut51Input: function (e) { this.setData({ fxjOut51: e.detail.value }) },
  fxjOut50Input: function (e) { this.setData({ fxjOut50: e.detail.value }) },
  fxjOut54Input: function (e) { this.setData({ fxjOut54: e.detail.value }) },
  fxjOut52Input: function (e) { this.setData({ fxjOut52: e.detail.value }) },
  fxjOut58Input: function (e) { this.setData({ fxjOut58: e.detail.value }) },
  fxjOut55Input: function (e) { this.setData({ fxjOut55: e.detail.value }) },
  fxjOut59Input: function (e) { this.setData({ fxjOut59: e.detail.value }) },
  fxjOut47Input: function (e) { this.setData({ fxjOut47: e.detail.value }) },
  fxjOut56Input: function (e) { this.setData({ fxjOut56: e.detail.value }) },
  fxjOut57Input: function (e) { this.setData({ fxjOut57: e.detail.value }) },



  checkboxChange(e) {
    console.log('checkboxChange e:', e);
    var fxjOut04 =[];
    let string = "riderCommentList[" + e.target.dataset.index + "].selected"
    this.setData({
      [string]: !this.data.riderCommentList[e.target.dataset.index].selected
    })
    let detailValue = this.data.riderCommentList.filter(it => it.selected).map(it => it.value)
    console.log('所有选中的值为：', detailValue)
    var arr, str;
    arr = new Array(detailValue);
    str = arr.join(","); 
    this.setData({
      fxjOut04: str
    });
    console.log(this.data.fxjOut04);
    console.log(detailValue);
    
  },

    onLoad: function (e) {
        console.log(e);
       
        // if (e.bpmStatus == '正常'){
            this.setData({
                id: e.orderNo,
                orderNo: e.orderNo,
                // proName: e.proName,
                bpmStatus: e.bpmStatus,
            });
        // }else{
        //     this.setData({
        //         id: e.orderNo,
        //         orderNo: e.orderNo,
        //         proName: e.proName,
        //         bpmStatus: e.bpmStatus,
        //         msgcontent: e.proMark + ';' + e.checkVal
        //     });
        // }
      this.detailInfo();
      this.gotGps();
        this.theme1();

        this.theme2();
        this.theme3();
        this.theme4();
        this.theme5();
        this.theme6();
        this.theme7();
        this.theme8();
        this.theme9();
        this.theme10();
        this.theme11();
        this.theme12();
        this.theme13();
        this.theme14();
        this.theme15();
        this.theme16();
        this.theme17();

      
    },

    // 获取经纬度
    gotGps: function () {
        var that = this;
        wx.getLocation({
            type: 'wgs84',
            success(res) {
                that.setData({
                    latitude: res.latitude,
                    longitude: res.longitude
                });

            }
        });
    },
    //获取机具信息
  bindinputarr1:function(){
    var that =this;
    var index1 =e.detail.value;
    that.setData({
      index1:index1
    })
  },
  bindBookInput: function (e) {
    console.log(e.detail.value)
    var book = e.detail.value;
    var that = this;
    that.setData({
      book: book
    })
  },
  bindPicker4Change: function (e) {
    console.log(e.detail.value)
    // console.log({})

    var checked = e.detail.value
    var changed = {}
    for (var i = 0; i < this.data.checkboxItems.length; i++) {
      if (checked.indexOf(this.data.checkboxItems[i].name) !== -1) {
        changed['checkboxItems[' + i + '].checked'] = true
      } else {
        changed['checkboxItems[' + i + '].checked'] = false
      }
    }
    this.setData(changed)
  },
  //获取详情
  detailInfo: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/posXjtaskController/' + that.data.id,

      success: function (res) {
        console.log("res=" + JSON.stringify(res.data));
        if (res.data.ok || res.data.data) {

          if (res.data.data.fxjOut01){
            that.setData({
              fxjOut01: res.data.data.fxjOut01,
            }
            )
          }
          if (res.data.data.fxjOut02) {
            that.setData({
            fxjOut03: res.data.data.fxjOut03,
            fxjOut04: res.data.data.fxjOut04,
            fxjOut05: res.data.data.fxjOut05,
            fxjOut02: res.data.data.fxjOut02,
            fxjOut16: res.data.data.fxjOut16,
            fxjOut18: res.data.data.fxjOut18,
            fxjOut21: res.data.data.fxjOut21,
            fxjOut14: res.data.data.fxjOut14,
            fxjOut15: res.data.data.fxjOut15,
            fxjOut08: res.data.data.fxjOut08,
            fxjOut19: res.data.data.fxjOut19,
            fxjOut64: res.data.data.fxjOut64,
            fxjOut20: res.data.data.fxjOut20,
            fxjOut09: res.data.data.fxjOut09,
            fxjOut17: res.data.data.fxjOut17,
            fxjOut12: res.data.data.fxjOut12,
            fxjOut60: res.data.data.fxjOut60,
            fxjOut65: res.data.data.fxjOut65,
            fxjOut61: res.data.data.fxjOut61,
            fxjOut10: res.data.data.fxjOut10,
            fxjOut62: res.data.data.fxjOut62,
            fxjOut11: res.data.data.fxjOut11,
            fxjOut13: res.data.data.fxjOut13,
            fxjOut63: res.data.data.fxjOut63,
            fxjOut07: res.data.data.fxjOut07,
            fxjOut06: res.data.data.fxjOut06,
            fxjOut66: res.data.data.fxjOut66,
            fxjOut74: res.data.data.fxjOut74,
            fxjOut27: res.data.data.fxjOut27,
            fxjOut26: res.data.data.fxjOut26,
            fxjOut29: res.data.data.fxjOut29,
            fxjOut31: res.data.data.fxjOut31,
            fxjOut70: res.data.data.fxjOut70,
            fxjOut71: res.data.data.fxjOut71,
            fxjOut67: res.data.data.fxjOut67,
            fxjOut73: res.data.data.fxjOut73,
            fxjOut25: res.data.data.fxjOut25,
            fxjOut76: res.data.data.fxjOut76,
            fxjOut28: res.data.data.fxjOut28,
            fxjOut24: res.data.data.fxjOut24,
            fxjOut22: res.data.data.fxjOut22,
            fxjOut23: res.data.data.fxjOut23,
            fxjOut30: res.data.data.fxjOut30,
            fxjOut69: res.data.data.fxjOut69,
            fxjOut75: res.data.data.fxjOut75,
            fxjOut68: res.data.data.fxjOut68,
            fxjOut32: res.data.data.fxjOut32,
            fxjOut43: res.data.data.fxjOut43,
            fxjOut46: res.data.data.fxjOut46,
            fxjOut37: res.data.data.fxjOut37,
            fxjOut80: res.data.data.fxjOut80,
            fxjOut36: res.data.data.fxjOut36,
            fxjOut79: res.data.data.fxjOut79,
            fxjOut39: res.data.data.fxjOut39,
            fxjOut77: res.data.data.fxjOut77,
            fxjOut72: res.data.data.fxjOut72,
            fxjOut34: res.data.data.fxjOut34,
            fxjOut48: res.data.data.fxjOut48,
            fxjOut44: res.data.data.fxjOut44,
            fxjOut41: res.data.data.fxjOut41,
            fxjOut33: res.data.data.fxjOut33,
            fxjOut42: res.data.data.fxjOut42,
            fxjOut35: res.data.data.fxjOut35,
            fxjOut38: res.data.data.fxjOut38,
            fxjOut40: res.data.data.fxjOut40,
            fxjOut45: res.data.data.fxjOut45,
            fxjOut78: res.data.data.fxjOut78,
            fxjOut49: res.data.data.fxjOut49,
            fxjOut53: res.data.data.fxjOut53,
            fxjOut51: res.data.data.fxjOut51,
            fxjOut50: res.data.data.fxjOut50,
            fxjOut54: res.data.data.fxjOut54,
            fxjOut52: res.data.data.fxjOut52,
            fxjOut58: res.data.data.fxjOut58,
            fxjOut55: res.data.data.fxjOut55,
            fxjOut59: res.data.data.fxjOut59,
            fxjOut47: res.data.data.fxjOut47,
            fxjOut56: res.data.data.fxjOut56,
            fxjOut57: res.data.data.fxjOut57,            }
            )
          }
          that.setData({
            id: res.data.data.id,
            posAddr: res.data.data.posAddr,
            posMobile: res.data.data.posMobile,
            posRemark: res.data.data.posRemark,
            posShengfen: res.data.data.posShengfen,
            posChengshi: res.data.data.posChengshi,
            posConcract: res.data.data.posConcract,
            posId: res.data.data.posId,
            posType: res.data.data.posType,
            posJuli: res.data.data.posJuli,
            posJhxjBtime: res.data.data.posJhxjBtime,
            posXjpcNo: res.data.data.posXjpcNo,
            wzChayi: res.data.data.wzChayi,
            posXjid: res.data.data.posXjid,
            posJhxjUser: res.data.data.posJhxjUser,
            shYysj: res.data.data.shYysj,
            posQuyu: res.data.data.posQuyu,
            posFenzu: res.data.data.posFenzu,
            posXjType: res.data.data.posXjType,
            posJhxjEtime: res.data.data.posJhxjEtime,
            posSjxjTime: res.data.data.posSjxjTime,
            posJhxjUsername: res.data.data.posJhxjUsername,
            posInstalldate: res.data.data.posInstalldate,
            shShxy: res.data.data.shShxy,
            shOtherpic: res.data.data.shOtherpic,
            shYyzz: res.data.data.shYyzz,
            posName: res.data.data.posName,
            shPic2: res.data.data.shPic2,
            shPic1: res.data.data.shPic1,
            posNo: res.data.data.posNo,
            posWeidu: res.data.data.posWeidu,
            posJingdu: res.data.data.posJingdu,
            sjWendu: res.data.data.sjWendu,
            sjJingdu: res.data.data.sjJingdu,
            // fxjOut01: res.data.data.fxjOut01,
            // fxjOut03: res.data.data.fxjOut03,
            // fxjOut04: res.data.data.fxjOut04,
            // fxjOut05: res.data.data.fxjOut05,
            // fxjOut02: res.data.data.fxjOut02,
            // fxjOut16: res.data.data.fxjOut16,
            // fxjOut18: res.data.data.fxjOut18,
            // fxjOut21: res.data.data.fxjOut21,
            // fxjOut14: res.data.data.fxjOut14,
            // fxjOut15: res.data.data.fxjOut15,
            // fxjOut08: res.data.data.fxjOut08,
            // fxjOut19: res.data.data.fxjOut19,
            // fxjOut64: res.data.data.fxjOut64,
            // fxjOut20: res.data.data.fxjOut20,
            // fxjOut09: res.data.data.fxjOut09,
            // fxjOut17: res.data.data.fxjOut17,
            // fxjOut12: res.data.data.fxjOut12,
            // fxjOut60: res.data.data.fxjOut60,
            // fxjOut65: res.data.data.fxjOut65,
            // fxjOut61: res.data.data.fxjOut61,
            // fxjOut10: res.data.data.fxjOut10,
            // fxjOut62: res.data.data.fxjOut62,
            // fxjOut11: res.data.data.fxjOut11,
            // fxjOut13: res.data.data.fxjOut13,
            // fxjOut63: res.data.data.fxjOut63,
            // fxjOut07: res.data.data.fxjOut07,
            // fxjOut06: res.data.data.fxjOut06,
            // fxjOut66: res.data.data.fxjOut66,
            // fxjOut74: res.data.data.fxjOut74,
            // fxjOut27: res.data.data.fxjOut27,
            // fxjOut26: res.data.data.fxjOut26,
            // fxjOut29: res.data.data.fxjOut29,
            // fxjOut31: res.data.data.fxjOut31,
            // fxjOut70: res.data.data.fxjOut70,
            // fxjOut71: res.data.data.fxjOut71,
            // fxjOut67: res.data.data.fxjOut67,
            // fxjOut73: res.data.data.fxjOut73,
            // fxjOut25: res.data.data.fxjOut25,
            // fxjOut76: res.data.data.fxjOut76,
            // fxjOut28: res.data.data.fxjOut28,
            // fxjOut24: res.data.data.fxjOut24,
            // fxjOut22: res.data.data.fxjOut22,
            // fxjOut23: res.data.data.fxjOut23,
            // fxjOut30: res.data.data.fxjOut30,
            // fxjOut69: res.data.data.fxjOut69,
            // fxjOut75: res.data.data.fxjOut75,
            // fxjOut68: res.data.data.fxjOut68,
            // fxjOut32: res.data.data.fxjOut32,
            // fxjOut43: res.data.data.fxjOut43,
            // fxjOut46: res.data.data.fxjOut46,
            // fxjOut37: res.data.data.fxjOut37,
            // fxjOut80: res.data.data.fxjOut80,
            // fxjOut36: res.data.data.fxjOut36,
            // fxjOut79: res.data.data.fxjOut79,
            // fxjOut39: res.data.data.fxjOut39,
            // fxjOut77: res.data.data.fxjOut77,
            // fxjOut72: res.data.data.fxjOut72,
            // fxjOut34: res.data.data.fxjOut34,
            // fxjOut48: res.data.data.fxjOut48,
            // fxjOut44: res.data.data.fxjOut44,
            // fxjOut41: res.data.data.fxjOut41,
            // fxjOut33: res.data.data.fxjOut33,
            // fxjOut42: res.data.data.fxjOut42,
            // fxjOut35: res.data.data.fxjOut35,
            // fxjOut38: res.data.data.fxjOut38,
            // fxjOut40: res.data.data.fxjOut40,
            // fxjOut45: res.data.data.fxjOut45,
            // fxjOut78: res.data.data.fxjOut78,
            // fxjOut49: res.data.data.fxjOut49,
            // fxjOut53: res.data.data.fxjOut53,
            // fxjOut51: res.data.data.fxjOut51,
            // fxjOut50: res.data.data.fxjOut50,
            // fxjOut54: res.data.data.fxjOut54,
            // fxjOut52: res.data.data.fxjOut52,
            // fxjOut58: res.data.data.fxjOut58,
            // fxjOut55: res.data.data.fxjOut55,
            // fxjOut59: res.data.data.fxjOut59,
            // fxjOut47: res.data.data.fxjOut47,
            // fxjOut56: res.data.data.fxjOut56,
            // fxjOut57: res.data.data.fxjOut57,
 
            posName: res.data.data.posName
          })
         
        
          wx.setNavigationBarTitle({
            title: that.data.posName
          })
          
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  },


  theme1: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos1',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            console.log(" res.data.data[i].typename=" + res.data.data[i].typename);
            console.log(" that.data.fxjOut01=" + that.data.fxjOut01);

            if (that.data.fxjOut01 == res.data.data[i].typename){

              that.setData({
                index1:i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array1: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  },

  theme2: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos2',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut02 == res.data.data[i].typename) {

              that.setData({
                index2: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array2: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme3: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos3',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut03 == res.data.data[i].typename) {

              that.setData({
                index3: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array3: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme4: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos4',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
         

         
            newArray.push(
              {
                value: res.data.data[i].typename,
                selected: false,
                title: res.data.data[i].typename
              }
              
            );
          }
          that.setData({
            riderCommentList: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme5: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos5',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut05 == res.data.data[i].typename) {

              that.setData({
                index5: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array5: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme6: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos6',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut06 == res.data.data[i].typename) {

              that.setData({
                index6: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array6: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme7: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos6',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut07 == res.data.data[i].typename) {

              that.setData({
                index7: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array7: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme8: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos6',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut08 == res.data.data[i].typename) {

              that.setData({
                index8: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array8: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme9: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos6',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut09 == res.data.data[i].typename) {

              that.setData({
                index9: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array9: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme10: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos6',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut10 == res.data.data[i].typename) {

              that.setData({
                index10: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array10: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme11: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos11',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut11 == res.data.data[i].typename) {

              that.setData({
                index11: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array11: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme12: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos6',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut12 == res.data.data[i].typename) {

              that.setData({
                index12: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array12: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme13: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos13',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut13 == res.data.data[i].typename) {

              that.setData({
                index13: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array13: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme14: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos6',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut14 == res.data.data[i].typename) {

              that.setData({
                index14: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array14: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme15: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos15',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut15 == res.data.data[i].typename) {

              that.setData({
                index15: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array15: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme16: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos6',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut16 == res.data.data[i].typename) {

              that.setData({
                index16: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array16: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, theme17: function () {
    var that = this;
    wx.request({
      url: pathUrl + '/rest/base/getDictValue/pos6',
      success: function (res) {
        if (res.data.ok || res.data.data) {
          var newArray = [];
          for (var i = 0; i < res.data.data.length; i++) {
            if (that.data.fxjOut17 == res.data.data[i].typename) {

              that.setData({
                index17: i
              })
            }
            newArray.push(
              res.data.data[i].typename
            );
          }
          that.setData({
            array17: newArray
          })
        } else {
          wx.showModal({
            title: '提示',
            content: '获取数据失败',
            confirmColor: '#7aa6d1',
            showCancel: false
          })
        }
      }
    })
  }, 


  bindPicker1Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index1: index,
      fxjOut01: that.data.array1[index]
    })
  },
  bindPicker2Change: function (e) {
    var that = this;
    var index = e.detail.value;
    console.log("index=" + index);
    console.log("that.data.array2[index]=" + that.data.array2[index]);
    that.setData({
      index2: index,
      fxjOut02: that.data.array2[index]
    })
  },
  bindPicker3Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index3: index,
      fxjOut03: that.data.array3[index]
    })
  },
  bindPicker4Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index4: index,
      fxjOut04: that.data.array4[index]
    })
  },
  bindPicker5Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index5: index,
      fxjOut05: that.data.array5[index]
    })
  },
  bindPicker6Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index6: index,
      fxjOut06: that.data.array6[index]
    })
  },
  bindPicker7Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index7: index,
      fxjOut07: that.data.array7[index]
    })
  },
  bindPicker8Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index8: index,
      fxjOut08: that.data.array8[index]
    })
  },
  bindPicker9Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index9: index,
      fxjOut09: that.data.array9[index]
    })
  },
  bindPicker10Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index10: index,
      fxjOut10: that.data.array10[index]
    })
  },
  bindPicker11Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index11: index,
      fxjOut11: that.data.array11[index]
    })
  },
  bindPicker12Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index12: index,
      fxjOut12: that.data.array12[index]
    })
  },
  bindPicker13Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index13: index,
      fxjOut13: that.data.array13[index]
    })
  },
  bindPicker14Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index14: index,
      fxjOut14: that.data.array14[index]
    })
  },
  bindPicker15Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index15: index,
      fxjOut15: that.data.array15[index]
    })
  },
  bindPicker16Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index16: index,
      fxjOut16: that.data.array16[index]
    })
  },
  bindPicker17Change: function (e) {
    var that = this;
    var index = e.detail.value;
    that.setData({
      index17: index,
      fxjOut17: that.data.array17[index]
    })
  },

    openGps: function () {
        var that = this;
        wx.openLocation({
            latitude: that.data.latitude,
            longitude: that.data.longitude,
            scale: 18
        })
    },
    // 电子手写签名
    goEleSignature:function(){
        wx.navigateTo({
            url: "/pages/eleSignature/eleSignature?orderNo=" + this.data.orderNo
        })
    },
    //拍照上传
    goPhotoUpload: function () {
        wx.navigateTo({
            url: "/pages/photoUpload/photoUpload?orderNo=" + this.data.orderNo
        })
    },

  //拍照上传
  goPhotoUploadqg: function () {
    wx.navigateTo({
      url: "/pages/photoUploadbyType/photoUploadbyType?orderNo=" + this.data.orderNo + "&type=qg"
    })
  },

  //拍照上传
  goPhotoUploadpx: function () {
    wx.navigateTo({
      url: "/pages/photoUploadbyType/photoUploadbyType?orderNo=" + this.data.orderNo + "&type=px"
    })
  },

    //录像上传
    goVideoUpload: function () {
        wx.navigateTo({
            url: "/pages/videoUpload/videoUpload?orderNo=" + this.data.orderNo
        })
    },
    // 地图
    goGps: function () {
        console.log('latitude=' + this.data.latitude)
        wx.navigateTo({
            url: "/pages/gps/gps?latitude=" + this.data.latitude + '&longitude=' + this.data.longitude + '&proName=' + this.data.proName
        })
    },
    onReady: function () {

    },

    //保存
    saveBtn: function (e) {
        var that = this;
        var data = {
          id: that.data.id,
          bpmStatus: that.data.bpmStatus,
          updateBy: that.data.openId,



          posAddr: that.data.posAddr,
          posMobile: that.data.posMobile,
          posRemark: that.data.msgcontent,
          posShengfen: that.data.posShengfen,
          posChengshi: that.data.posChengshi,
          posConcract: that.data.posConcract,
          posId: that.data.posId,
          posType: that.data.posType,
          posJuli: that.data.posJuli,
          posJhxjBtime: that.data.posJhxjBtime,
          posXjpcNo: that.data.posXjpcNo,
          wzChayi: that.data.wzChayi,
          posXjid: that.data.posXjid,
          posJhxjUser: that.data.posJhxjUser,
          shYysj: that.data.shYysj,
          posQuyu: that.data.posQuyu,
          posFenzu: that.data.posFenzu,
          posXjType: that.data.posXjType,
          posJhxjEtime: that.data.posJhxjEtime,
          posSjxjTime: that.data.posSjxjTime,
          posJhxjUsername: that.data.posJhxjUsername,
          posInstalldate: that.data.posInstalldate,
          shShxy: that.data.shShxy,
          shOtherpic: that.data.shOtherpic,
          shYyzz: that.data.shYyzz,
          posName: that.data.posName,
          shPic2: that.data.shPic2,
          shPic1: that.data.shPic1,
          posNo: that.data.posNo,
          posWeidu: that.data.posWeidu,
          posJingdu: that.data.posJingdu,
          sjJingdu: that.data.latitude,
          sjWendu: that.data.longitude,
          fxjOut01: that.data.fxjOut01,
          fxjOut03: that.data.fxjOut03,
          fxjOut04: that.data.fxjOut04,
          fxjOut05: that.data.fxjOut05,
          fxjOut02: that.data.fxjOut02,
          fxjOut16: that.data.fxjOut16,
          fxjOut18: that.data.fxjOut18,
          fxjOut21: that.data.fxjOut21,
          fxjOut14: that.data.fxjOut14,
          fxjOut15: that.data.fxjOut15,
          fxjOut08: that.data.fxjOut08,
          fxjOut19: that.data.fxjOut19,
          fxjOut64: that.data.fxjOut64,
          fxjOut20: that.data.fxjOut20,
          fxjOut09: that.data.fxjOut09,
          fxjOut17: that.data.fxjOut17,
          fxjOut12: that.data.fxjOut12,
          fxjOut60: that.data.fxjOut60,
          fxjOut65: that.data.fxjOut65,
          fxjOut61: that.data.fxjOut61,
          fxjOut10: that.data.fxjOut10,
          fxjOut62: that.data.fxjOut62,
          fxjOut11: that.data.fxjOut11,
          fxjOut13: that.data.fxjOut13,
          fxjOut63: that.data.fxjOut63,
          fxjOut07: that.data.fxjOut07,
          fxjOut06: that.data.fxjOut06,
          fxjOut66: that.data.fxjOut66,
          fxjOut74: that.data.fxjOut74,
          fxjOut27: that.data.fxjOut27,
          fxjOut26: that.data.fxjOut26,
          fxjOut29: that.data.fxjOut29,
          fxjOut31: that.data.fxjOut31,
          fxjOut70: that.data.fxjOut70,
          fxjOut71: that.data.fxjOut71,
          fxjOut67: that.data.fxjOut67,
          fxjOut73: that.data.fxjOut73,
          fxjOut25: that.data.fxjOut25,
          fxjOut76: that.data.fxjOut76,
          fxjOut28: that.data.fxjOut28,
          fxjOut24: that.data.fxjOut24,
          fxjOut22: that.data.fxjOut22,
          fxjOut23: that.data.fxjOut23,
          fxjOut30: that.data.fxjOut30,
          fxjOut69: that.data.fxjOut69,
          fxjOut75: that.data.fxjOut75,
          fxjOut68: that.data.fxjOut68,
          fxjOut32: that.data.fxjOut32,
          fxjOut43: that.data.fxjOut43,
          fxjOut46: that.data.fxjOut46,
          fxjOut37: that.data.fxjOut37,
          fxjOut80: that.data.fxjOut80,
          fxjOut36: that.data.fxjOut36,
          fxjOut79: that.data.fxjOut79,
          fxjOut39: that.data.fxjOut39,
          fxjOut77: that.data.fxjOut77,
          fxjOut72: that.data.fxjOut72,
          fxjOut34: that.data.fxjOut34,
          fxjOut48: that.data.fxjOut48,
          fxjOut44: that.data.fxjOut44,
          fxjOut41: that.data.fxjOut41,
          fxjOut33: that.data.fxjOut33,
          fxjOut42: that.data.fxjOut42,
          fxjOut35: that.data.fxjOut35,
          fxjOut38: that.data.fxjOut38,
          fxjOut40: that.data.fxjOut40,
          fxjOut45: that.data.fxjOut45,
          fxjOut78: that.data.fxjOut78,
          fxjOut49: that.data.fxjOut49,
          fxjOut53: that.data.fxjOut53,
          fxjOut51: that.data.fxjOut51,
          fxjOut50: that.data.fxjOut50,
          fxjOut54: that.data.fxjOut54,
          fxjOut52: that.data.fxjOut52,
          fxjOut58: that.data.fxjOut58,
          fxjOut55: that.data.fxjOut55,
          fxjOut59: that.data.fxjOut59,
          fxjOut47: that.data.fxjOut47,
          fxjOut56: that.data.fxjOut56,
          fxjOut57: that.data.fxjOut57
        };
        console.log("data:" + JSON.stringify(data));

        wx.request({

            url: pathUrl + '/rest/posXjtaskController/' + that.data.id,
            data: data,
            method: 'PUT',
            success: function (res) {
                console.log(res.data)
                if (res.data.ok) {
                    that.setData({
                        isSubmit: false
                    });
                    wx.showToast({
                        title: '保存成功',
                        duration: 500,
                        mask: true,
                        success: function () {
                            setTimeout(function () {
                                wx.navigateTo({
                                  url: "/pages/posXjTask/posXjTask?posxjtype=" + that.data.posXjType,
                                })
                            }, 1000);
                        }
                    })
                } else {
                    that.setData({
                        isSubmit: true
                    });
                    wx.showToast({
                        title: '提交失败',
                        icon: 'none',
                        mask: true,
                        duration: 1000
                    })
                }
            }
        })

    },
    //提交
    submitBtn: function (e) {
        var that = this;
        var data = {
            id: that.data.id,
            bpmStatus: '10',
            updateBy: that.data.openId,
           
          

          posAddr: that.data.posAddr,
          posMobile: that.data.posMobile,
          posRemark: that.data.msgcontent,
          posShengfen: that.data.posShengfen,
          posChengshi: that.data.posChengshi,
          posConcract: that.data.posConcract,
          posId: that.data.posId,
          posType: that.data.posType,
          posJuli: that.data.posJuli,
          posJhxjBtime: that.data.posJhxjBtime,
          posXjpcNo: that.data.posXjpcNo,
          wzChayi: that.data.wzChayi,
          posXjid: that.data.posXjid,
          posJhxjUser: that.data.posJhxjUser,
          shYysj: that.data.shYysj,
          posQuyu: that.data.posQuyu,
          posFenzu: that.data.posFenzu,
          posXjType: that.data.posXjType,
          posJhxjEtime: that.data.posJhxjEtime,
          posSjxjTime: that.data.posSjxjTime,
          posJhxjUsername: that.data.posJhxjUsername,
          posInstalldate: that.data.posInstalldate,
          shShxy: that.data.shShxy,
          shOtherpic: that.data.shOtherpic,
          shYyzz: that.data.shYyzz,
          posName: that.data.posName,
          shPic2: that.data.shPic2,
          shPic1: that.data.shPic1,
          posNo: that.data.posNo,
          posWeidu: that.data.posWeidu,
          posJingdu: that.data.posJingdu,
          sjJingdu: that.data.latitude,
          sjWendu: that.data.longitude,
          fxjOut01: that.data.fxjOut01,
          fxjOut03: that.data.fxjOut03,
          fxjOut04: that.data.fxjOut04,
          fxjOut05: that.data.fxjOut05,
          fxjOut02: that.data.fxjOut02,
          fxjOut16: that.data.fxjOut16,
          fxjOut18: that.data.fxjOut18,
          fxjOut21: that.data.fxjOut21,
          fxjOut14: that.data.fxjOut14,
          fxjOut15: that.data.fxjOut15,
          fxjOut08: that.data.fxjOut08,
          fxjOut19: that.data.fxjOut19,
          fxjOut64: that.data.fxjOut64,
          fxjOut20: that.data.fxjOut20,
          fxjOut09: that.data.fxjOut09,
          fxjOut17: that.data.fxjOut17,
          fxjOut12: that.data.fxjOut12,
          fxjOut60: that.data.fxjOut60,
          fxjOut65: that.data.fxjOut65,
          fxjOut61: that.data.fxjOut61,
          fxjOut10: that.data.fxjOut10,
          fxjOut62: that.data.fxjOut62,
          fxjOut11: that.data.fxjOut11,
          fxjOut13: that.data.fxjOut13,
          fxjOut63: that.data.fxjOut63,
          fxjOut07: that.data.fxjOut07,
          fxjOut06: that.data.fxjOut06,
          fxjOut66: that.data.fxjOut66,
          fxjOut74: that.data.fxjOut74,
          fxjOut27: that.data.fxjOut27,
          fxjOut26: that.data.fxjOut26,
          fxjOut29: that.data.fxjOut29,
          fxjOut31: that.data.fxjOut31,
          fxjOut70: that.data.fxjOut70,
          fxjOut71: that.data.fxjOut71,
          fxjOut67: that.data.fxjOut67,
          fxjOut73: that.data.fxjOut73,
          fxjOut25: that.data.fxjOut25,
          fxjOut76: that.data.fxjOut76,
          fxjOut28: that.data.fxjOut28,
          fxjOut24: that.data.fxjOut24,
          fxjOut22: that.data.fxjOut22,
          fxjOut23: that.data.fxjOut23,
          fxjOut30: that.data.fxjOut30,
          fxjOut69: that.data.fxjOut69,
          fxjOut75: that.data.fxjOut75,
          fxjOut68: that.data.fxjOut68,
          fxjOut32: that.data.fxjOut32,
          fxjOut43: that.data.fxjOut43,
          fxjOut46: that.data.fxjOut46,
          fxjOut37: that.data.fxjOut37,
          fxjOut80: that.data.fxjOut80,
          fxjOut36: that.data.fxjOut36,
          fxjOut79: that.data.fxjOut79,
          fxjOut39: that.data.fxjOut39,
          fxjOut77: that.data.fxjOut77,
          fxjOut72: that.data.fxjOut72,
          fxjOut34: that.data.fxjOut34,
          fxjOut48: that.data.fxjOut48,
          fxjOut44: that.data.fxjOut44,
          fxjOut41: that.data.fxjOut41,
          fxjOut33: that.data.fxjOut33,
          fxjOut42: that.data.fxjOut42,
          fxjOut35: that.data.fxjOut35,
          fxjOut38: that.data.fxjOut38,
          fxjOut40: that.data.fxjOut40,
          fxjOut45: that.data.fxjOut45,
          fxjOut78: that.data.fxjOut78,
          fxjOut49: that.data.fxjOut49,
          fxjOut53: that.data.fxjOut53,
          fxjOut51: that.data.fxjOut51,
          fxjOut50: that.data.fxjOut50,
          fxjOut54: that.data.fxjOut54,
          fxjOut52: that.data.fxjOut52,
          fxjOut58: that.data.fxjOut58,
          fxjOut55: that.data.fxjOut55,
          fxjOut59: that.data.fxjOut59,
          fxjOut47: that.data.fxjOut47,
          fxjOut56: that.data.fxjOut56,
          fxjOut57: that.data.fxjOut57
        };
        // console.log("data:" + JSON.stringify(data));
      

        // wx.request({
        //     url: pathUrl + '/rest/posXjtaskController/' + that.data.id,
        //     data: data,
        //     method: 'PUT',
        //     success: function (res) {
        //         // console.log(res.data)
        //       console.log(that.data.id)
        //       console.log(that.data.posXjType)
        //         if (res.data.ok) {
        //             that.setData({
        //                 isSubmit: true,
        //               posXjType: that.data.posXjType
        //             });
        //             wx.showToast({
        //                 title: '提交成功',
        //                 duration: 500,
        //                 mask: true,
        //                 success: function () {
        //                     setTimeout(function () {
        //                         wx.navigateTo({
        //                           url: "/pages/posXjIndex/posXjIndex"
        //                         })
        //                     }, 1000);
        //                 }
        //             })
        //         } else {
        //             that.setData({
        //                 isSubmit: true
        //             });
        //             wx.showToast({
        //                 title: '提交失败',
        //                 icon: 'none',
        //                 mask: true,
        //                 duration: 1000
        //             })
        //         }
        //     }
        // })
      wx.request({
        url: pathUrl + '/rest/posXjtaskController/list' + that.data.id,
        data: data,
        method: 'PUT',
        success: function (res) {
          console.log(data)
          console.log(typeof(data))
          console.log(res.data)
          console.log(that.data.id)
          console.log(that.data.posXjType)
          if (res.data.ok) {
            that.setData({
              isSubmit: true,
              // posXjType: that.data.posXjType,
              posxjtype: that.data.posXjType
            });
            wx.showToast({
              title: '提交成功',
              duration: 500,
              mask: true,
              success: function () {
                setTimeout(function () {
                  wx.navigateTo({
                    url: "/pages/posXjTask/posXjTask?posxjtype=" + that.data.posXjType,
                  })
                }, 1000);
              }
            })
          } else {
            that.setData({
              isSubmit: true
            });
            wx.showToast({
              title: '提交失败',
              icon: 'none',
              mask: true,
              duration: 1000
            })
          }
        }
      })

    },




    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {

    }
})